#ifndef _SOFTVEC_H_INCLUDED_
#define _SOFTVEC_H_INCLUDED_

#include "softvec_type.h"

typedef short softvec_type_t;
typedef void (*softvec_handler_t)(softvec_type_t type, unsigned long sp);

extern char softvec;
#define SOFTVECS ((softvec_handler_t *)&softvec)

static inline void softvec_setintr(softvec_type_t type, softvec_handler_t handler)
{
    SOFTVECS[type] = handler;
}

#endif
